package com.wxzz.elearing.pay.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableField;
import com.wxzz.elearning.common.bean.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户钱包
 * </p>
 *
 * @author
 * @since 2021-04-23
 */
@Data
@ApiModel(value = "UserWallet对象", description = "用户钱包")
public class UserWallet extends BaseEntity {

    @ApiModelProperty(value = "用户id(平台端id为0 企业端为企业id 讲师端为讲师id)")
    private Long userId;

    @ApiModelProperty(value = "0-平台端 1-企业端 2-用户端 3-讲师端")
    private Integer userType;

    @ApiModelProperty(value = "用户余额")
    private BigDecimal userBalance = new BigDecimal("0.00");

    @ApiModelProperty(value = "累计资产")
    private BigDecimal accumulate = new BigDecimal("0.00");

    @ApiModelProperty(value = "提现次数")
    private Integer withdrawNum = 0;

    @ApiModelProperty(value = "累计提现金额")
    private BigDecimal withdrawMoney = new BigDecimal("0.00");

    @TableField(exist = false)
    @ApiModelProperty(value = "提现规则")
    private String paramDetail;

}
